<!DOCTYPE html>
<html>
	<head>
		<title>CSS Regions: auto-height regions inside a flex container with fixed size</title>
		<link rel="author" title="Catalin Badea" href="mailto:badea@adobe.com">
		<link rel="help" href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution">
		<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
		<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-from-property">
		<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm">
		<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-wrap">
		<meta name="assert" content="Test that the flex container stretches a region flex item with a height smaller than
		the flex container's inner cross size.">
		<link rel="match" href="reference/autoheight-regions-in-fixed-sized-flexbox-006-ref.html">
		<style>
			#c1, #c2 {
				font-family: Ahem;
				font-size: 20px;
				line-height: 1em;
			}
			#c1 {
				color: green;
				flow-into: flow1;
			}
			#c2 {
				color: blue;
				flow-into: flow2;
			}

			.flex {
				display: flex;
				flex-direction: row wrap;
				flex: auto;
				height: 80px;
				width: 200px;
			}
			.region1 {
				flow-from: flow1;
				background-color: green;
			}
			.region2 {
				flow-from: flow2;
			}

			.red {
				background-color: red;
			}
		</style>
	</head>
	<body>
		<ul>
			<li>Test passes if you see a rectangle having the left half colored green and the right half colored
				blue.</li>
			<li>You shouldn't see any red.</li>
		</ul>
		<div id="c1">
			XXXX<br>
			XXXX
		</div>
		<div id="c2">
			XXXX<br>
			XXXX<br>
			XXXX<br>
			XXXX
		</div>
		<div class="flex">
			<div class="region1"></div>
			<div class="region2"><p class="red">&nbsp;</p></div>
		</div>
	</body>
</html>
